<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>天知道</title>
</head>
<style>
  a {
    color: #000;
    text-decoration: none;
  }

  .text,
  .form_group {
    text-align: center;
  }

  .hotkey {
    margin-left: 150px;
    font-size: 10px;
  }

  .weather_list {
    list-style: none;
  }
</style>

<body>
  <div class="warp" id="app">

    <div class="search_form">
      <div class="text">天知道</div>
      <div class="form_group">
        <input type="text" @keyup.enter="searchWeather" v-model="city" class="input_txt" placeholder="请输入查询的天气">

        <button class="input_sub" @click="searchWeather">
          搜索
        </button>
      </div>
      <div class="hotkey">
        <a href="javascript:void(0)" @click="changeCity('北京')">北京</a>
        <a href="javascript:void(0)" @click="changeCity('上海')">上海</a>
        <a href="javascript:void(0)" @click="changeCity('广东')">广东</a>
        <a href="javascript:void(0)" @click="changeCity('深圳')">深圳</a>
        <a href="javascript:void(0)" @click="changeCity('青岛')">青岛</a>
      </div>
      <ul class="weather_list">
        <li v-for="item in weatherList">
          <div class="info_type">{{ item.city}}</div>
          <div class="info_type"> 低温 {{ item.temperature_float}}~ 高温 {{item.humidity_float}}</div>
          <div class="info_type">{{ item.reporttime}}</div>
        </li>
      </ul>
    </div>

  </div>

  <script src="/VueJs/vue.js"></script>
  <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
  <!-- 自己的js -->
  <script src="/vue/main.js">

  </script>


</body>

</html>